package com.hcms.admin.dto;

import cn.hutool.core.bean.BeanUtil;
import com.hcms.mybatis.entity.SysRole;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysRoleOptionResponse implements Serializable {

    private Long id;

    private String name;

    public SysRoleOptionResponse(SysRole role) {
        BeanUtil.copyProperties(role, this);
    }

}
